package com.itshi.plic;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

/**
 * @author げっしょく
 * @date 2021/8/19
 */
public class Test1 {
    public static void main(String[] args) throws Exception{

        Class.forName("com.mysql.jdbc.Driver");
        //
        Connection connection = DriverManager.getConnection("jdbc:mysql://123.0.0.1:3306/db10", "root", "1234");
        String sql = "update from emp set where id=1";
        Statement statement = connection.createStatement();
        int i = statement.executeUpdate(sql);
        System.out.println(i);
    }
}
